package com.siashan.toolkit.oss.minio;

import com.siashan.toolkit.oss.core.OssStorageService;
import com.siashan.toolkit.oss.minio.core.MinioOssStorageService;

/**
 * MinIO 工厂类
 *
 * @author siashan
 * @date 2024/2/6
 **/
public class MinioOssFactoryProvider {

    private MinioOssProperties minioOssProperties;


    public MinioOssFactoryProvider(MinioOssProperties minioOssProperties) {
        this.minioOssProperties = minioOssProperties;
    }


    /**
     * 获取存储服务类
     *
     * @return MinIO Oss存储服务类
     */
    public OssStorageService getStoreageService() {
        return new MinioOssStorageService(minioOssProperties.getConfig());
    }

}
